#ifndef __DirScanner_HPP__
#define __DirScanner_HPP__
#include <vector>
#include <string>
using std::vector;
using std::string;

class DirScanner
{
public:
    DirScanner() {};
    void operator()(const string &dirname); //这里调用traverse，利用config的指针把dirname拿出来
    //由于停用词靠Conf就能完成读取，scan这里只需要读所有语料文件的路径就行了
    vector<string> files() {return _files;}
    void traverse(const string &dirname);
private:
    vector<string> _files;
};

#endif
